<template>
  <div class="app-container">
    用户登录

    小明完成登录布局模块

    <button @click="handleLogin">登录</button>
  </div>
</template>

<script lang="ts" setup>
// 完成登录交互模块
import { login } from '../../api/user';

const handleLogin = () => {
  login({
    username: 'admin',
    password: 'admin'
  }).then(res => {
    console.log(res);
  })
}
</script>

<style lang="less" scoped>

</style>
